package com.mall.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @Description
 * @ClassName Pay
 * @Author cxx
 * @Date 2023/6/10 10:11
 * @Version 1.0
 */

public enum Pay {
    NOTPAID(1, "未支付"),

    SUCCESS(2, "支付成功"),

    FAIL(0, "支付失败");
    @EnumValue
    private final Integer code;
    private final String msg;

    Pay(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
